package com.study.decorator.battercake;

public class BatterCakeAddEgg extends BatterCakeDecorator {

    public BatterCakeAddEgg(BatterCake cake) {
        super(cake);
    }

    @Override
    protected String getName() {
        return super.getName() + " 1个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 1;
    }
}
